<template>
  <el-row type="flex" justify="space-between" style="width:100%">
    <el-col>{{ treeNode.name }}</el-col>
    <el-col :span="4">
      <el-row type="flex" justify="space-between">
        <el-col>{{ treeNode.manager }}</el-col>
        <el-col>
          <el-dropdown>
            <span class="el-dropdown-link">操作<i class="el-icon-arrow-down" /></span>
            <el-dropdown-menu slot="dropdown">
              <el-dropdown-item>添加</el-dropdown-item>
              <el-dropdown-item v-if="!rootNode">删除</el-dropdown-item>
              <el-dropdown-item v-if="!rootNode">编辑</el-dropdown-item>
            </el-dropdown-menu>
          </el-dropdown>
        </el-col>
      </el-row>
    </el-col>
  </el-row>
</template>
<script>
export default {
  props: {
    treeNode: {
      type: Object,
      required: true
    },
    rootNode:{
      type: Boolean,
      default: false
    }
  }
}
</script>
